Optimal. Leaf size=62 \[ -\frac {(2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^2}-\frac {d^2 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {799, 794, 223,
209} \begin {gather*} -\frac {d^2 \text {ArcTan}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^2}-\frac {(2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 223
Rule 794
Rule 799
Rubi steps
\begin {align*} \int \frac {x \sqrt {d^2-e^2 x^2}}{d+e x} \, dx &=\frac {\int \frac {x \left (d^2 e-d e^2 x\right )}{\sqrt {d^2-e^2 x^2}} \, dx}{d e}\\ &=-\frac {(2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^2}-\frac {d^2 \int \frac {1}{\sqrt {d^2-e^2 x^2}} \, dx}{2 e}\\ &=-\frac {(2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^2}-\frac {d^2 \text {Subst}\left (\int \frac {1}{1+e^2 x^2} \, dx,x,\frac {x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e}\\ &=-\frac {(2 d-e x) \sqrt {d^2-e^2 x^2}}{2 e^2}-\frac {d^2 \tan ^{-1}\left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )}{2 e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 77, normalized size = 1.24 \begin {gather*} \frac {e (-2 d+e x) \sqrt {d^2-e^2 x^2}-d^2 \sqrt {-e^2} \log \left (-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right )}{2 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(134\) vs.
\(2(54)=108\).
time = 0.06, size = 135, normalized size = 2.18
method | result | size |
risch | \(-\frac {\left (-e x +2 d \right ) \sqrt {-e^{2} x^{2}+d^{2}}}{2 e^{2}}-\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 e \sqrt {e^{2}}}\) | \(64\) |
default | \(\frac {\frac {x \sqrt {-e^{2} x^{2}+d^{2}}}{2}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 \sqrt {e^{2}}}}{e}-\frac {d \left (\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}+\frac {d e \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}\right )}{\sqrt {e^{2}}}\right )}{e^{2}}\) | \(135\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 52, normalized size = 0.84 \begin {gather*} -\frac {1}{2} \, d^{2} \arcsin \left (\frac {x e}{d}\right ) e^{\left (-2\right )} + \frac {1}{2} \, \sqrt {-x^{2} e^{2} + d^{2}} x e^{\left (-1\right )} - \sqrt {-x^{2} e^{2} + d^{2}} d e^{\left (-2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 5.40, size = 57, normalized size = 0.92 \begin {gather*} \frac {1}{2} \, {\left (2 \, d^{2} \arctan \left (-\frac {{\left (d - \sqrt {-x^{2} e^{2} + d^{2}}\right )} e^{\left (-1\right )}}{x}\right ) + \sqrt {-x^{2} e^{2} + d^{2}} {\left (x e - 2 \, d\right )}\right )} e^{\left (-2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \sqrt {- \left (- d + e x\right ) \left (d + e x\right )}}{d + e x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.49, size = 43, normalized size = 0.69 \begin {gather*} -\frac {1}{2} \, d^{2} \arcsin \left (\frac {x e}{d}\right ) e^{\left (-2\right )} \mathrm {sgn}\left (d\right ) + \frac {1}{2} \, \sqrt {-x^{2} e^{2} + d^{2}} {\left (x e^{\left (-1\right )} - 2 \, d e^{\left (-2\right )}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {x\,\sqrt {d^2-e^2\,x^2}}{d+e\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________